dofile ("libWindow.lua")

win1 = Window.new(SCREEN_DOWN, 5, 5, 100, 100, "Title", "Text", c_red, c_black, c_lightgrey, c_white, true, "Status")
win2 = Window.new(SCREEN_DOWN, 50, 50, 100, 100, "Title", "Text", c_blue, c_black, c_lightgrey, c_white)
win3 = Window.new(SCREEN_DOWN, 95, 95, 100, 100, "Title", "Text", c_green, c_black, c_lightgrey, c_white)

win1:setDebug(true)
win2:setDebug(true)
win3:setDebug(true)

Window.add(win1)
Window.add(win2)
Window.add(win3)

while not Keys.held.Start do
	Controls.read()
	
	startDrawing()
		
		Window.drawAll()
		
	stopDrawing()
	
end

win1:clear()
win2:clear()
win3:clear()
collectgarbage()
